package com.chucang.shucang.pms.service;

import com.chucang.shucang.common.base.service.CrudService;
import com.chucang.shucang.pms.dto.BlindBoxMallDTO;
import com.chucang.shucang.pms.entity.BlindBoxMallEntity;
import com.chucang.shucang.pms.feign.vo.UserBlindBoxHoldEntity;
import com.chucang.shucang.pms.vo.BlindBoxOnSaleDetailResVO;
import com.chucang.shucang.pms.vo.BlindBoxOnSalePageResVO;
import com.chucang.shucang.pms.vo.query.BlindBoxOnSaleQuery;

import java.util.List;

/**
 * 盲盒商城表
 *
 * @author flitsneak flitsneak@gmail.com
 * @since 1.0.0 2022-09-12
 */
public interface BlindBoxMallService extends CrudService<BlindBoxMallEntity, BlindBoxMallDTO> {

    boolean blindBoxesOnConsign(List<UserBlindBoxHoldEntity> userBlindBoxHoldList);

    BlindBoxMallEntity getTheBottomPrice(Long id);

    BlindBoxOnSalePageResVO onSaleBlindBoxPage(BlindBoxOnSaleQuery blindBoxOnSaleQuery);

    BlindBoxOnSaleDetailResVO getOnSaleBlindBoxDetail(Long id);
}